<template>
	<view>
		<u-cell-group>
			<u-cell-item :arrow="arrowClose" v-for="(item,index) in getPerformanceList" :key="index" :title=item.month>{{item.performance}}</u-cell-item>
		</u-cell-group>
		<view v-if="!getPerformanceList.length" style="padding-top: 100rpx;width: 100%;">
			<u-empty mode="list"></u-empty>
		</view>
	</view>
</template>

<script>
import { getPerformance } from '../utils/index.js'
	export default {
		data() {
			return {
				getPerformanceList: [],				//获取到的员工绩效表单
				arrowClose: false					//箭头的关闭
			}
		},
		methods: {
			// 获取员工绩效函数
			async getKPI() {
				const {data} = await getPerformance()
				this.getPerformanceList = data.data
			}
		},
		//进入页面即获取员工绩效函数
		onLoad() {
			this.getKPI()
		}
	}
</script>

<style>
</style>
